﻿@Styles.Render("~/Content/themes/project/table.css")


@model IEnumerable<MinistryStandardPlatformEntity.Dictionary_Detail>

<script src="~/Scripts/project/dictionary_add.js"></script>
<script type="text/javascript"  src="~/Scripts/project/dictionary_delete.js"></script>
<script src="~/Scripts/project/dictionary_edit.js"></script>
<script src="~/Scripts/project/dictionary_detail.js"></script>


<script type="text/javascript">
    $(document).ready(function () {
        if ("zd004" == "@ViewBag.id") 
        {
            $(document.getElementById("editBtn")).hide();
        $(document.getElementById("deleteBtn")).hide();

    }
    });
</script>
<div class=" box verticalbox">
    <div class="menu boxorder1" id="subMenu">
        <span>
            <input type="button" id="refreshBtn" value="刷新" /></span>
        <span>
            <input type="button" id="createBtn" value="新增" data-href="/Dictionary/Create" /></span>
        <span>
            <input type="button" id="editBtn" value="修改" data-href="/Dictionary/Edit" /></span>
        <span>
            <input type="button" id="deleteBtn" value="删除" data-href="/Dictionary/Delete/"></span>
    </div>
    <div class="boxorder2 boxweight1" id="tablelist">
        <input type="hidden" id="typeid" value="@ViewBag.id" />
        <table class="tablelist">
            <thead>
                <tr>
                    <th>行号</th>
                    <th>字典名称</th>
                    <th>备注</th>
                </tr>
            </thead>
            <tbody>
                @{
                    int i=0;
                    foreach (var item in Model)
                    {
                        ++i;
                        <tr id="@item.DicID" >
                            <td>@i</td>
                            <td><input type="hidden" value="@item.DicName" id="dicName"/>@item.DicName</td>
                            <td><input type="hidden" value="@item.Memo" id="memo"/>@item.Memo</td>
                        </tr>
                    }
                 }
            </tbody>

        </table>
    </div>
</div>
<script type="text/javascript">
    registertableevent();
</script>
